<?php
namespace app\common\model;
use think\Controller;

class Log extends Controller
{
    public function itemAdd($info = null,$uid = null,$type = null)
    {
        $uid = $uid ? $uid : 0;
        db('BaseLog')->insert(array(
            'uid' => $uid,
            'info' => $info,
            'type' => $type,
            'time' => time(),
        ));
        return true;
    }
    
}